//
// Created by 吴锐 on 2022/3/3.
//

#include "iostream"
#include "vector"
#include "algorithm"

using namespace std;

void test01(){
    vector<int> v;
    for(int i = 0 ; i < 10 ; i++){
        v.push_back(i);
    }

    bool result = binary_search(v.begin(), v.end(), 9);

    if(result){
        cout << "找到了" << endl;
    }else {
        cout << "没找到" << endl;
    }
}

int main(){
    test01();
    return 0;
}